home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
8bit
/
cislib_a
/
index2.doc
< prev
next >
Wrap
Text File
|
1995-04-22
|
12KB
|
331 lines
INDEX.COM Documentation
Copyright (c) 1985 By The 4th Works, Inc.
NOTE: INDEX.COM REQUIRES THE ATARI PAPERCLIP KEY TO RUN.
INDEX.COM is a general purpose indexing utility for
Atari PaperClip. It will generate a list of words and page
numbers from a word list and a source document.
1. CREATING THE INPUT FILES
Before running INDEX.COM you must create the two files
that it needs to generate an index. The first file is the
INDEX WORD FILE. It contains a list of the words to be
indexed, one word per line with a CR after each. For
instance, if you want to index the words 'the', 'and', 'to'
and 'from' the INDEX WORD FILE would look like this:
the
and
to
from
The words can be in either upper or lower case, since
INDEX.COM ignores case. It converts all words in the index
word list and the source document into lower case when
running. (You can create the INDEX WORD FILE using
PaperClip, just press RETURN after each word.)
The second file you need is the SOURCE FILE. To
generate this file, load the document you wish to index
into PaperClip. You must add a special header command to
the file, so that INDEX.COM will know what page it is
reading. On the VERY FIRST line of your source document
type:
CTRL-ZH>PAGENUMBER< CTRL-N
Be sure to use UPPER CASE when typing this. And don't
leave out the space between the '<' and the CTRL-N. (Yes,
you are supposed to type the '>' and the '<'.)
This tells PaperClip to print a header on the first
line of each page. Be sure to use header numbers 2 or 3
for any other headers you have defined in your document.
(Also make sure that they print on a different line than
this header.)
Next press CTRL-SHIFT-O (the start output command).
When the prompt "Print device? P:" prompt appears type
"D:filename.ext<RETURN>" (where filename.ext is the
filename you wish to write to). Be sure not to use the
same name as the original copy of the document. Next you
will be prompted "Send control codes? <Y/N> Yes". Press
'N' then RETURN. (INDEX.COM will do strange things if you
send printer control codes to it.) Just press RETURN for
the rest of the prompts. PaperClip will now "PRINT" the
file to the disk file you told it. This is is the
SOURCE FILE that INDEX.COM needs.
- 1 -
2. RUNNING INDEX.COM
Now you are ready to run INDEX.COM. To do this load
your copy of Atari DOS (or DOSXL, or other Atari compatible
DOS). (If you are using an 800XL or 130XE hold down OPTION
when booting DOS. This will remove the BASIC ROM and give
INDEX.COM 8K of additional memory to store the index in.)
When the DOS menu appars type 'L<RETURN>', then type
'INDEX.COM<RETURN>'. (If you are using OS/A+ or DOSXL just
type 'INDEX<RETURN>' at the D1: prompt.) This will load
and run INDEX.COM.
NOTE: Be sure your Atari PaperClip key is plugged into
joystick port 2. INDEX.COM will not run if the key is not
plugged in.
After INDEX.COM has loaded you will see the main
screen. This is the screen that says "PaperClip Index
Generator" at the top. It also will give the version
number of the program. At the bottom of the screen is a
number followed by the phrase "Bytes free". This tells you
how much memory INDEX.COM can use to store the index.
On the same screen there is also a prompt saying
"Index word file:". Type in the name of the file
containing the words that are to be indexed (the first file
you created), and press RETURN. (You don't need to type
the "D:", INDEX.COM will put on the name for you. If the
file is not on drive 1, type "Dn:filename.ext", where "n"
is the drive number.) Every time you press RETURN,
INDEX.COM prints a status line at the top of the screen
giving the name of the file you just gave it.
Next you will be asked to enter the "Source file:".
This is the second file you created (the one with the funny
header). Just type in the file name and press RETURN.
Finally you will be asked for the "Destination file:".
This is the file INDEX.COM will write the index to. You
can either have INDEX.COM write the index to a disk file,
or to the printer. To send it directly to the printer type
"P:<RETURN>". To send it to a disk file just type the
filename and press RETURN (just like you did for the other
two prompts).
When you press RETURN for the third time, the message
"Generating INDEX word list." will be printed. INDEX.COM
will then read in the INDEX WORD FILE, and create a list of
the words to be indexed. Next a message saying "Indexing
source file." will be printed. INDEX.COM will then read in
the SOURCE FILE and generate the index. As it reads the
SOURCE FILE, a message will appear telling you what page it
is reading.
After INDEX.COM finishes reading the SOURCE FILE, the
message "Writing destination file." will appear. INDEX.COM
will then write the index to the destination file. (Either
the printer or the disk file you told it to use.) At the
bottom of the screen there should be a message saying "NNNN
Bytes used". This lets you know how much of the available
memory INDEX.COM used to generate the index.
- 2 -
3. THE INDEX
The index that INDEX.COM generates is an alphabetical
list of the words in the INDEX WORD FILE. Each word is
printed in lower case followed by the page number(s) that
the word is on. The page numbers are seperated by commas.
If a word does not occur in the SOURCE FILE no page numbers
will be printed after it.
4. ERROR MESSAGES:
Whenever an error occurs when running INDEX.COM, an
error message will be printed in the middle of the screen.
Some errors will also print a prompt saying "Press RETURN
to continue" at the bottom of the screen. When you press
RETURN, you will get the main screen and the "Index word
file:" prompt again.
--- NOT ENOUGH MEMORY TO STORE THE INDEX WORDS
This message occurs when there is not enough memory
for INDEX.COM to store all the words to be indexed. When
you press RETURN you will return to the main INDEX.COM
screen. If this error occurs, first check that there is no
cartridge installed (on XL/XE computers make sure OPTION
was held down when DOS was booted).